package com.luosan.portalservice.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("sub_card")
public class SubCard {
    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField("main_card_id")
    private Integer mainCardId;

    private String text;

    private String link;

    @TableField("sort_order")
    private Integer sortOrder;

    @Override
    public String toString() {
        return "SubCard{" +
                "id=" + id +
                ", mainCardId=" + mainCardId +
                ", text='" + text + '\'' +
                ", link='" + link + '\'' +
                ", sortOrder=" + sortOrder +
                '}';
    }
}
